package com.snack.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.snack.shop.entity.Message;

public interface MessageService {
    Message create(Long userId, Integer type, String title, String content, String bizType, Long bizId);
    Page<Message> pageByUser(Long userId, Integer type, Integer current, Integer size);
    Integer getUnreadCount(Long userId);
    void markRead(Long userId, Long messageId);
    void markAllRead(Long userId);
}
